import React from 'react';

/** 合同首页上下文 */
export interface IContractHomePageAPI {
  styleFixCls: string;
  curRes: Record<string, any>;
  copeWithData: Record<string, any>[];
  collectionData: Record<string, any>[];
  dispatch: any;
}

/** 合同管理上下文 */
const INIT_CONTRACTHOME_CONTEXT: IContractHomePageAPI = {
  styleFixCls: '',
  curRes: {},
  copeWithData: [],
  collectionData: [],
  dispatch: () => {},
};

const ContractHomeContext = React.createContext<IContractHomePageAPI>(INIT_CONTRACTHOME_CONTEXT);

export { ContractHomeContext };
